import request from '@/utils/request'

import { getToken } from '@/utils/storage'

const token = getToken()
// 封装发布房屋所需要的条件
  export const wantRent = () => {
    return request.get('/houses/params')
  }
//发布房源的接口
export const toRent = (data) => {
  return request.post('/user/houses',data)
}
// 发布照片
export const postPhoto = (data)=>{
  console.log(data)
  return request({
    url: '/houses/image',
    method: 'post',
    data
  })
}